{% extends "base_nosearch.html" %}
{% load url from future %}
{% block script %}
	$("#submit").click(function(){
		$("form").submit();
	});
	$("input[name='password']").keydown(function(e){
		if(e.keyCode==13)
			$("form").submit();
	});
{% endblock %}
{% block content %}
<div class="container" id="bg_none">  
  
     <div id="login_container">
         
         <span class="orange2">会员登录</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请填写你的用户名及密码，即可登录。  如果还没注册，请点击&nbsp;&nbsp;<a href="/accounts/register/"><span class="orange">快速注册</span></a>
         <div id="user">
         <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
	        {% csrf_token %}
            <table><tbody>
            <tr>
               <td class="left">用户名</td>
               <td>{{form.username}}</td>               
            </tr>
            <tr>
               <td class="left">密码</td>
               <td>{{form.password}}</td>               
            </tr>                 
            </tbody></table>
            
            <div class="tips">{{ form.username.errors }}{{ form.password.errors }}</div>
            
            <div id="login_content">
                 <input type="checkbox"  id="status"/>记住我的登录状态
                  <br>
                  <a href="">忘记密码？</a>
            </div>
            <div id="login_bt">
               <a href="#" id="submit">登录</a>
            </div>
            <a href="/accounts/register" id="register">免费注册</a>
         </form>
         </div>
     
     
     </div>

  <div class="bottom_bg_pic"></div>
 
</div>
{% endblock %}
